<?php
include_once BONE_ROOT.DS.APP_DIR.DS.'templates'.DS.'menu'.DS.'menu.php';

class template_edit extends template_menu
{

	protected function center()
	{
		
		$group = $this->get('group');
		$menu = $this->get('menu');
		$this->toolbar();
		?>

<div class="box">
	<div class="box-tl"><div class="box-tr"><div class="box-tm"></div></div></div>	
	<div class="box-m">
		
		<h3 class="title"><?php echo $this->get_title(); ?></h3>
		<form action="./" method="post">
		<table class="edit-table">
		<tbody>
		<tr>
		<td class="key">名称</td>
		<td><input type="text" name="name" value="<?php echo $menu->name; ?>" /></td>
		</tr>
		<tr>
		<td class="key">调用程序</td>
		<td>
			<input type="text" name="m_controller" value="<?php echo $menu->controller; ?>" />
		</td>
		</tr>
		<tr>
		<td class="key">任务名</td>
		<td>
			<input type="text" name="m_task" value="<?php echo $menu->task; ?>" />
		</td>
		</tr>
		<tr>
		<td class="key">参数</td>
		<td>
			<input type="text" name="param" value="<?php echo $menu->param; ?>" />
		</td>
		</tr>
		<tr>
		<td class="key">URL</td>
		<td>
			<input type="text" name="url" value="<?php echo $menu->url; ?>" />
		</td>
		</tr>
		<tr>
		<td class="key">排序</td>
		<td>
			<input type="text" name="ordering" value="<?php echo $menu->ordering; ?>" />
		</td>
		</tr>
		<tr>
		<td class="key"></td>
		<td>
		<input class="btn" type="submit" value="保存" /> <input class="btn" type="button" value="返回" onclick="javascript:window.history.go(-1);" />
		</td>
		</tr>
		</tbody>
		</table>
		<input type="hidden" name="group_id" value="<?php echo $group->id; ?>" />
		<input type="hidden" name="id" value="<?php echo $menu->id; ?>" />
		<input type="hidden" name="controller" value="menu" />
		<input type="hidden" name="task" value="edit_save" />
		</form>
	</div>
	<div class="box-bl"><div class="box-br"><div class="box-bm"></div></div></div>
</div>
		

		<?php
		
	}	

}
?>